package com.wiki.gds.user.facade.sys.api;

import com.wiki.gds.base.common.dto.ResponseDto;
import com.wiki.gds.user.facade.sys.hystrix.UserApiFallbackFactory;
import com.wiki.gds.user.facade.sys.model.User;
import org.beetl.sql.core.engine.PageQuery;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "gds-user-provider",path = UserApi.mapping,fallbackFactory = UserApiFallbackFactory.class)
public interface UserApi {
    static String mapping="/api/user";
    @PostMapping
    User getBySelf(@RequestBody User user);

    @PostMapping
    String TestAAA();

    @PostMapping
    ResponseDto<User>  insert(@RequestBody User user);
}
